package com.xlh.websocket.message;

import com.xlh.enums.WebsocketMessageEnum;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author lx
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StatisticMessage extends Message {

    private Long classId;

    @Builder
    public StatisticMessage(Long userId, Long classId) {
        super.setType(WebsocketMessageEnum.STATISTIC_END_MESSAGE.getCode());
        super.setUserId(userId);
        this.classId = classId;
    }
}
